package sg.edu.nus.iss.vmcs.system;
/**
 * Author : Priyanka
 * button action for the restart button on the customer panel  
 * 
 */

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import sg.edu.nus.iss.vmcs.termination.states.InitialState;

public class RestartButtonListener  implements ActionListener {

	private MainController mctrl;
	public RestartButtonListener(MainController mctrl) {
		super();
		this.mctrl = mctrl;
	}
	@Override
	public void actionPerformed(ActionEvent arg0) {
		mctrl.getTrasactionController().getDispenseController().allowSelection(true);
		mctrl.getTrasactionController().restartState();
	}

}